<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="master.html" />

<head>

	<script type="text/javascript">
	function redirect(address)
	{
		window.location = address;
	}
	
	function setAction(formId,action)
	{
		alert(action);
		var form = document.getElementById(formId);
		form.action = action;
		alert(document.getElementById(formId).action);
	}
	</script>
	
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title>Consulta Pa&iacute;s: </title>
</head>

<body>
	<h2>Consulta Pa&iacute;s:</h2>
		<div>
			<form action="/consultapaisuc/do_retrievepais" method="post">
		        <p>
			        <b>Codigo:</b> <input type="text" name="codigoPais" value=""/><br/>
			        <b>Descricao:</b> <input type="text" name="descricaoPais" value=""/><br/>
			        <b>Codigo Auxiliar:</b> <input type="text" name="codigoAuxiliarPais" value=""/><br/>
			        <b>Valor:</b> <input type="text" name="valorPais" value=""/><br/>
		        </p>
		        <input type="submit" name="submit" value="Consultar"/>
		        <input type="button" name="submit" value="Incluir" onclick="redirect('/includepaisuc/includepais')" />
	        </form>
	    </div>
	    <!--
	<h2>Teste</h2>
		<div>
			<form action="/consultapaisuc/do_retrievepais" method="post" id="form1">
		        <p>
			        <b>Codigo:</b> <input type="text" name="codigoPais" value=""/><br/>
			        <b>Descricao:</b> <input type="text" name="descricaoPais" value=""/><br/>
			        <b>Codigo Auxiliar:</b> <input type="text" name="codigoAuxiliarPais" value=""/><br/>
			        <b>Valor:</b> <input type="text" name="valorPais" value=""/><br/>
		        </p>
		        <input type="submit" name="submit" value="Consultar" onclick="setAction('form1','/index')"/>
		        <input type="submit" name="submit" value="Incluir" onclick="setAction('form1','/includepaisuc/includepais')" />
	        </form>
	    </div>
	     -->
</body>
</html>